/**
 * @copyright SilverBiology, LLC.
 * @author Michael Giddens
 * @website http://www.silverbiology.com
*/
Ext.ns('TaxonTagger');

TaxonTagger.Whitelist = function(config, id) {

	Ext.apply(this,config,{
			title: 'White List'
		,	autoScroll: true
	});

	TaxonTagger.Whitelist.superclass.constructor.call(this,config);
};

//---------------------------------------------

Ext.extend(TaxonTagger.Whitelist, Ext.Panel, {	

	loadList: function( list ) {
		this.list = list;
		var str = '';
		Ext.each( list, function( item ) {
			str += item.full + "<br>";
		});
		this.body.update("<div class='list'>" + str + "<div>");
	}

});